import { ApiProperty } from '@nestjs/swagger';
import { DeviceStatus } from '../../common/enums';

export class DeviceUserModel {
  @ApiProperty({
    description: 'Device serial number',
    example: 'SN12345678',
  })
  serialNumber: string;

  @ApiProperty({
    description: 'Device status',
    enum: DeviceStatus,
    example: DeviceStatus.ACTIVE,
  })
  status: DeviceStatus;

  @ApiProperty({
    description: 'Last used date',
    example: '2025-01-15T14:30:00Z',
    nullable: true,
  })
  lastUsedAt: Date | null;
}
